{template "content","header"}
	<!--<header class="lc-xsl-hd clearfix">
		<a href="javascript:history.go(-1);" class="lc-hd-back"></a>
		新丝路超模培训
	</header>-->
		<div class="com-banner">
			<img src="{IMG_PATH}nsr/ptcpt-banner.png" alt="" class="banner-pic">
		</div>
		<!-- 报名 -->
		<form action="/index.php?m=motoreg&c=index&a=register" method="post" onsubmit="return checkForm()">
		<div class="ptcpt-box ptcpt-zxbm" id="js-bm">
			<div class="form-box">
			<ul class="ptcpt-form">
				<li class="li-input clearfix">
					<input type="text" name="data[username]" placeholder="请输入姓名">
					<p class="input-err" id="username_error" style="display:none;">输入错误</p>
				</li>
				<li class="li-input clearfix">
					<input type="text" name="data[idnumber]" placeholder="请输入证件号码">
					<p class="input-err" id="idnumber_error" style="display:none;">输入错误</p>
				</li>
				<li class="li-input clearfix"><input type="text" name="data[phone]" placeholder="请输入手机号">
					<a class="ptcpt-verify">获取验证码</a>
					<p class="input-err" id="phone_error" style="display:none;">输入错误</p>
				</li>
				<li class="li-input clearfix">
					<input type="text" name="data[valicode]" placeholder="请输入验证码">
					<p class="input-err" id="valicode_error" style="display:none;">输入错误</p>
				</li>
			</ul>
			</div>
			<input type="submit" class="ptcpt-btn" id="js-bm" value="报&nbsp名"/>
		</div>
		</form>
		{template "content","newfooter"}
	<script type="text/javascript" src="{JS_PATH}nsr/jquery-1.8.3.min.js"></script>
	<script type="text/javascript" src="{JS_PATH}nsr/lc_adp.js"></script>
	<script type="text/javascript" src="{JS_PATH}nsr/lc_js.js"></script>
	<script type="text/javascript">
		function checkForm(){
			var username = $("input[name='data[username]']").val();
			var tel = $("input[name='data[phone]']").val();
			var idnumber = $("input[name='data[idnumber]']").val();
			if($("input[name='data[username]']").val()==""){
				$("#username_error").html("请填写姓名").css('display','block');
				return false;
			} else {
				$("#username_error").css('display','none');
			}
			if(!(/^[\u4e00-\u9fa5]{2,4}$/i.test(username))){
				$("#username_error").html("请填写真实姓名").css('display','block');
				return false;
			} else {
				$("#username_error").css('display','none');
			}
			if($("input[name='data[idnumber]']").val()==""){
				$("#idnumber_error").html("请填写证件号码").css('display','block');
				return false;
			} else {
				$("#idnumber_error").css('display','none');
			}
			if(!(/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(idnumber))){
				$("#idnumber_error").html("请填写正确的证件号码").css('display','block');
				return false;
			} else {
				$("#idnumber_error").css('display','none');
			}
			if($("input[name='data[phone]']").val()==""){
				$("#phone_error").html("请填写手机号").css('display','block');
				return false;
			} else {
				$("#phone_error").css('display','none');
			}
			if(!(/^1(3[0-9]|5[012356789]|8[0-9]|4[7]|7[678])\d{8}$/.test(tel))){
				$("#phone_error").html("请填写正确的手机号").css('display','block');
                return false;
			} else {
				$("#phone_error").css('display','none');
			}
			/* if($("input[name='valicode']").val()==""){
				alert('请填写验证码');
				return false;
			} */
		}
	</script>
{template "content","footer"}